package com.meetingshow.dao.user;

import java.sql.Types;

import org.springframework.jdbc.core.support.JdbcDaoSupport;


public class UserDAO extends JdbcDaoSupport implements IUserDAO{
	private String sql = "INSERT INTO t_user(UserName, Password) values(?,?)";

	public void insert(String userName, String password) throws Exception {
		try {
			getJdbcTemplate().update(sql,
					new Object[] {userName, password},
					new int[] { Types.VARCHAR,Types.VARCHAR});
		} catch (Exception e) {
			// ServiceFactory.getLogManager().error(arg0, arg1);
			throw e;
		}
	}
	
	
}
